package com.function;

import java.util.function.Predicate;

/**
 * @Author: 许磊磊
 * @Date: 2022/10/17 19:16
 * @Version 1.0
 */
public class PredicateTest {
    /**
     * 断言,顾名思义,一个方法用来确定正确与否
     * @param args
     */
    public static void main(String[] args) {
        Predicate<String>predicate=s -> {
            return s.equals("hello java");
        };

        System.err.println(predicate.test("nihao java"));
        System.err.println(predicate.test("hello java"));
    }
}
